package com.supermap.business.cloud.circum;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dataservice.util.JSONUtil;
import com.supermap.dubbo.api.cloud.circum.CropsHospitalService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.math.BigDecimal;

/**
 * @author aqua
 * @description 庄稼医院
 * @date 2018年11月19 下午 8:40
 * @email 1301584033@qq.com
 */
@Controller
@RequestMapping("/cloud/circum")
public class CropsHospitalContrller {

    @Reference(timeout = 100000)
    private CropsHospitalService cropsHospitalService;
    @GetMapping("/getPageCropsHospitalByAreaCodeOrkeyName")
    @ResponseBody
    private JSONUtil getPageCropsHospitalByAreaCodeOrkeyName(String areaCode,String keyName,Integer pageNum,Integer pageSize){
        return  cropsHospitalService.getPageCropsHospitalByAreaCodeOrkeyName(areaCode,keyName,pageNum,pageSize);
    }
}
